#include <stdio.h>
#include <string.h>

int main()
{
    char str[82] = {'\0'};
    fgets(str, 82, stdin);
    int idx = 0;
    int cnt = 0;
    while (str[idx] != '\n')
    {
        idx++;
    }
    str[idx] = '\0';
    for (int j = 0; j < strlen(str); j++)
    {
        if (str[j] >= 'B' && str[j] <= 'Z' && \
        str[j] != 'E' && str[j] != 'I' && str[j] != 'O'\
        && str[j] != 'U')
        {
            cnt++;
        }
    }
    printf("%d", cnt);
    return 0;
}